package com.hehua.FacadePattern;

/**
 * 文件加密类,充当子系统类
 */
public class CipherMachine {
    public String encrypt(String planText){
        System.out.println("数据加密,将明文转换为密文");
        String es = "";
        for (int i = 0; i < planText.length(); i++) {
            String c = String.valueOf(planText.charAt(i) % 7);
            es += c;
        }
        System.out.println(es);
        return es;
    }
}
